package com.ers.modelconvert;

import com.ers.model.HR;
import com.ers.validmodel.HRModel;

public class HRConvert {
	public static HR toHR(HRModel hrm){
		HR hr = new HR();
		hr.setId(hrm.getId());
		hr.setName(hrm.getName());
		hr.setMailbox(hrm.getMailbox());
		hr.setPassword(hrm.getPassword());
		hr.setPhone(hrm.getPhone());
		hr.setLoginName(hrm.getLoginName());
		return hr;
	}
}
